<layout name='layoutP' />
<title>会议纪要</title>
<load href="__PUBLIC__/Js/Jquery/jquery.form.js" />

<script type="text/javascript" src="__PUBLIC__/Js/jquery.confirm.js"></script>
<script type="text/javascript">

	function messagebox(msg) {
		$("#message-details").html(msg);
		$("#dialog:ui-dialog").dialog("destroy");
		$("#dialog-message").dialog({
			width : 360,
			height : 230,
			buttons : {
				确认 : function() {
					$(this).dialog("close");
				}
			}
		});
	}
	
	$(function() {
		 $( "#dialog-message" ).hide();
		 


		
		

		$('#form1').ajaxForm({
			success : complete, // post-submit callback
			dataType : 'json'
		});
	
		$('a.del').confirm({
			  msg:'确定删除吗？',
			  timeout:3000,
			  dialogShow:'fadeIn',
			  dialogSpeed:'slow',
			  buttons: {
				    ok:'是',
				    cancel:'否',
				    separator:'  ',
				    wrapper:'<button></button>'
				  }
		 });
		
		 function complete(data){
	            if (data.status==1){
	            	
	               messagebox(data.info);
	            }else{
	        
	            	 messagebox(data.info);
	            }
		 };
	});
	
</script>

<div id="tabs">
<ul>
	<li><a href="#tabs-1">查看会议纪要</a></li>
	<li><a href="#tabs-2">添加会议纪要</a></li>
</ul>
<div id="tabs-1">


<present name="mlist">
<div>
<table id="myTable" class="tablesorter">
	<thead>
		<tr>
			<th style="display: none">idmeetinglog</th>
			<th width=20%>时间</th>
			<th width=50%>内容</th>
			<!--        <th>内容</th>-->
			<th>操作</th>
		</tr>
	</thead>
	<tbody>
		<volist name="mlist" id="vo">
		<tr>
			<td class="normal" style="display: none">{$vo['idmeetinglog']}</td>
			<td class="normal">{$vo['date']}</td>
			<td class="normal">{$vo['content']}</td>
			<td><a class="del"
				href="__URL__/deletelog?mid={$vo['idmeetinglog']}">删除消息</a>
		</tr>
		</volist>
	</tbody>
</table>
</div>
<div>{$page1}</div>
<else />
<h2>没有记录</h2>
</present>
</div>


<div id="tabs-2">
<div>
  <form id="form1" method='post' action="__URL__/addlog">
            <table cellpadding=2 cellspacing=2>
                <tr>
                    <td class="tRight" width="12%">时间</td>
                    <td class="tLeft" ><input type="text" name="date" id="date" style="height:23px;" class="large bLeft" ></td>
                </tr>
                
                <tr>
                    <td class="tRight tTop" >内容：</td>
                    <td><textarea name="content" id="content" class="huge bLeft" rows="8" cols="60"></textarea></td>
                </tr>
                <tr>
                    <td><input type="hidden" name="ajax" value="1"></td>
                    <td><input type="submit"  class="button" value="添加"> 
                </tr>
                <tr>
                    <td></td>
                    <td><hr></td>
                </tr>
            </table>
        </form>
      <div id="dialog-message" title="发送完成">
    <p>
        <span class="ui-icon ui-icon-circle-check" style="float:left; margin:0 7px 50px 0;"></span>
        <span id="message-details"></span>
    </p>
</div>
</div>
</div>
</div>



